package com.zb.api.common.econts;


public enum DecorationStyleEnum {
    LIGHT_LUXURY_WIND(1, "轻奢风"),
    NORDIC_STYLE(2, "北欧风"),
    JAPANESE(3, "日式"),
    NEW_CHINESE_STYLE(4, "新中式"),
    COUNTRYSIDE(5, "农村"),
    AMERICAN_STYLE(6, "美式"),
    RETRO_STYLE(7, "复古风"),
    MODERN(8, "现代"),
    SIMPLICITY(9, "简约"),
    PASTORAL_STYLE(10, "田园风"),
    OTHER(100, "其他")
  ;

    private String desc;
    private Integer value;

    DecorationStyleEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public String getDesc() {
        return desc;
    }

    public Integer getValue() {
        return value;
    }


    public static DecorationStyleEnum valueOf(Integer value) {
        for (DecorationStyleEnum statusEnum : values()) {
            if (statusEnum.getValue().equals(value)) {
                return statusEnum;
            }
        }
        throw new RuntimeException("没有找到对应的枚举");
    }

    public static String value (Integer value) {
        for (DecorationStyleEnum item : DecorationStyleEnum.values()) {
            if (item.getValue().equals(value)) {
                return item.getDesc();
            }
        }
        return null;
    }
}
